import './index.scss'
import Display from '../../components/display'
import React from 'react'
const user={
    id:1,
    name:"xxy",
    phone:"15638329257",
    aveter:'http://8.142.19.67:3000/images/cat'
}
const contextValue={
    username:"李世民"
}
export const userContext = React.createContext<object>(contextValue);
function User(){
    return <div id='father'>
        <div id='title'>查看消息</div>
        <div className="msg">
        <div className="child"><span>你在干啥?</span></div>
        <div className="child"><span>没干啥.</span></div>
        <div className="child"><span>周末去哪玩?</span></div>
        <div className="child"><span>睡觉</span></div>
        <div className="child"><span>吃啥？</span></div>
        <div className="child"><span>不知道</span></div>
        </div>
        <userContext.Provider value={contextValue}>
            <Display {...user} />
        </userContext.Provider>
      
    </div>
}
export default User